home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
dev
/
amos
/
amos_col.lha
/
AMOS-COL
/
Scroll3.amos
/
Scroll3.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1980-01-10
|
2KB
|
108 lines
'
'DELTA/BUCKET 24.10.1996
'
'�ukasz �elezny
'ul. W�oska 4d/6
'42-600 Tarnowskie G�ry
'POLAND
'
'Hi to: Raptor, Starlight, Vook, The Soul, Lobo
'
'
_SCROLL
Procedure _SCROLL
Trap Screen Close 0
Hide On
Led Off
Track Play
Track Loop On
Unpack 10 To 0
Screen Open 1,320,256,8,Lowres
For K=1 To 2 : Cls 0 : Next
Dual Playfield 0,1
Dual Priority 1,0
Double Buffer : Autoback 0
OPEN_FONT["scala",8]
Set Font Param
Curs Off : Palette 0,$FFF : Cls 0 : Pen 1 : Paper 0
Def Scroll 1,0,50 To 640,200,0,-2
Restore DATY
MX=100
Dim T$(MX)
For NR=1 To MX
Read T$(NR)
If T$(NR)="*" Then Exit
Next
NR=1
Ink 1,0
Screen To Front 0
Screen 1
Gr Writing 0
Do
Screen 1
Text 10,200-12,T$(NR)
Inc NR
If T$(NR)="*" Then NR=1
For SCRL=1 To 10
Screen 1 : Scroll 1
Screen Swap
Screen Copy Physic To Logic
Next SCRL
Loop
DATY: Data "CREDITS"
Data "ALL CODING: DELTA OF BUCKET"
Data "MSX: JAKA MSX ???"
Data "GFX: DELTA"
Data "This is a new routine made by DELTA"
Data ""
Data "******************"
Data "* DELTA'S SCROLL *"
Data "******************"
Data ""
Data "This is a dual playfileld mode..."
Data ""
Data ""
Data "*"
End Proc
Procedure OPEN_FONT[NAZWA$,ROZMIAR]
BLAD=0
If Lower$(Right$(NAZWA$,5))<>".font"
NAZWA$=NAZWA$+".font"
End If
NAZWA$=NAZWA$+Chr$(0)
Dreg(0)=7 : Dreg(1)=0
ADRES=Execall(-198)
If ADRES=0 Then BLAD=24
Loke ADRES,Varptr(NAZWA$)
Doke ADRES+4,ROZMIAR
Doke ADRES+6,0
FONT=Gfxcall(-72)
If FONT=0
Lib Open 1,"diskfont.library",0
Areg(0)=ADRES : Areg(1)=ADRES
FONT=Lib Call(1,-30)
If FONT=0 : BLAD=44 : End If
Else
BLAD=44
End If
If ADRES
Areg(1)=ADRES
Dreg(0)=7
X=Execall(-210)
End If
If BLAD=0
Get Rom Fonts
FONT=0
N$=Upper$(Left$(NAZWA$,Len(NAZWA$)-6))
Repeat
Inc FONT
A$=Upper$(Font$(FONT))
A$=Left$(A$,Instr(A$,".FONT")-1)
A=Val(Mid$(Font$(FONT),31,5))
Until(A$=N$ and A=ROZMIAR) or(A$="")
Else
Error BLAD
End If
End Proc[FONT]